package com.ruoyi.project.channel.vwBusinessCashDayStat.service;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.channel.vwBusinessCashDayStat.mapper.VwBusinessCashDayStatMapper;
import com.ruoyi.project.channel.vwBusinessCashDayStat.domain.VwBusinessCashDayStat;
import com.ruoyi.project.channel.vwBusinessCashDayStat.service.IVwBusinessCashDayStatService;
import com.ruoyi.common.utils.text.Convert;

/**
 * VIEW 服务层实现
 * 
 * @author zero
 * @date 2019-05-06
 */
@Service
public class VwBusinessCashDayStatServiceImpl implements IVwBusinessCashDayStatService 
{
	@Autowired
	private VwBusinessCashDayStatMapper vwBusinessCashDayStatMapper;

	/**
     * 查询VIEW信息
     * 
     * @param businessId VIEWID
     * @return VIEW信息
     */
    @Override
	public VwBusinessCashDayStat selectVwBusinessCashDayStatById(Long businessId)
	{
	    return vwBusinessCashDayStatMapper.selectVwBusinessCashDayStatById(businessId);
	}
	
	/**
     * 查询VIEW列表
     * 
     * @param vwBusinessCashDayStat VIEW信息
     * @return VIEW集合
     */
	@Override
	public List<VwBusinessCashDayStat> selectVwBusinessCashDayStatList(VwBusinessCashDayStat vwBusinessCashDayStat)
	{
	    return vwBusinessCashDayStatMapper.selectVwBusinessCashDayStatList(vwBusinessCashDayStat);
	}
	
    /**
     * 新增VIEW
     * 
     * @param vwBusinessCashDayStat VIEW信息
     * @return 结果
     */
	@Override
	public int insertVwBusinessCashDayStat(VwBusinessCashDayStat vwBusinessCashDayStat)
	{
	    return vwBusinessCashDayStatMapper.insertVwBusinessCashDayStat(vwBusinessCashDayStat);
	}
	
	/**
     * 修改VIEW
     * 
     * @param vwBusinessCashDayStat VIEW信息
     * @return 结果
     */
	@Override
	public int updateVwBusinessCashDayStat(VwBusinessCashDayStat vwBusinessCashDayStat)
	{
	    return vwBusinessCashDayStatMapper.updateVwBusinessCashDayStat(vwBusinessCashDayStat);
	}

	/**
     * 删除VIEW对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteVwBusinessCashDayStatByIds(String ids)
	{
		return vwBusinessCashDayStatMapper.deleteVwBusinessCashDayStatByIds(Convert.toStrArray(ids));
	}

	/**
	 * 查询业务员数据
	 * @param vwBusinessCashDayStat 查询条件
	 * @return 结果
	 */
	@Override
	public List<VwBusinessCashDayStat> selectVwSalesmanCashDayStatList(VwBusinessCashDayStat vwBusinessCashDayStat){
		return vwBusinessCashDayStatMapper.selectVwSalesmanCashDayStatList(vwBusinessCashDayStat);
	}

	/**
	 * 查询业务员日数据
	 * @param vwBusinessCashDayStat
	 */
	@Override
	public List<VwBusinessCashDayStat> selectVwSalesmanBusinessCashDayStatList(VwBusinessCashDayStat vwBusinessCashDayStat){
		return vwBusinessCashDayStatMapper.selectVwSalesmanBusinessCashDayStatList(vwBusinessCashDayStat);
	}

	/**
	 * 根据时间统计系统入金出金
	 * @param vwBusinessCashDayStat
	 * @return
	 */
	@Override
	public List<VwBusinessCashDayStat> selectVwSalesmanTotalStatList(VwBusinessCashDayStat vwBusinessCashDayStat){
		return vwBusinessCashDayStatMapper.selectVwSalesmanTotalStatList(vwBusinessCashDayStat);
	}

	/**
	 * 近一个月统计
	 * @param vwBusinessCashDayStat
	 * @return
	 */
	public List<VwBusinessCashDayStat> selectVwSalesmanBusinessCashMonthStatList(VwBusinessCashDayStat vwBusinessCashDayStat){
		return vwBusinessCashDayStatMapper.selectVwSalesmanBusinessCashMonthStatList(vwBusinessCashDayStat);
	}

	public List<VwBusinessCashDayStat> selectVwSalesmanBusinessCashSyncList(VwBusinessCashDayStat vwBusinessCashDayStat){
		return vwBusinessCashDayStatMapper.selectVwSalesmanBusinessCashSyncList(vwBusinessCashDayStat);
	}
}
